package commun;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface BanqueService extends Remote { 
    public void ouvrirCompte(String id, String password) throws RemoteException;
    public Compte verifie(String id, String password) throws RemoteException;
    public int fermerCompte(String id, String password) throws RemoteException;
    public void deposer(int somme, Compte c) throws RemoteException;
    public int retirer(int somme, Compte c) throws RemoteException;
    public int voirSolde(Compte c) throws RemoteException;
    public boolean connecter(String id) throws RemoteException;
    public void deconnecter(String id) throws RemoteException;
}
